if (self.CavalryLogger) { CavalryLogger.start_js(["4B4ww"]); } __d("ModernWatchQueueFollowedShowTapMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"input",type:"WatchQueueFollowedShowTapData!",defaultValue:null}],b=[{kind:"LinkedField",alias:null,name:"watch_queue_followed_show_tap",storageKey:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"WatchQueueFollowedShowTapResponsePayload",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"client_mutation_id",args:null,storageKey:null}]}];return{kind:"Request",fragment:{kind:"Fragment",name:"ModernWatchQueueFollowedShowTapMutation",type:"Mutation",metadata:null,argumentDefinitions:a,selections:b},operation:{kind:"Operation",name:"ModernWatchQueueFollowedShowTapMutation",argumentDefinitions:a,selections:b},params:{operationKind:"mutation",name:"ModernWatchQueueFollowedShowTapMutation",id:"1431198360290030",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentCoverQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"permalinkUrl",name:"permalink_url",args:null,storageKey:null},{kind:"ScalarField",alias:"isDisturbing",name:"is_disturbing",args:null,storageKey:null},{kind:"LinkedField",alias:null,name:"image",storageKey:null,args:null,concreteType:"Image",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"uri",args:null,storageKey:null}]}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentCoverQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentCoverQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentCoverQuery",id:"1931478723571694",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentEmbeddedControlsQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"permalinkUrl",name:"permalink_url",args:null,storageKey:null},{kind:"ScalarField",alias:"canCastVideo",name:"can_cast_video",args:null,storageKey:null},{kind:"ScalarField",alias:"broadcastStatus",name:"broadcast_status",args:null,storageKey:null}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentEmbeddedControlsQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentEmbeddedControlsQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentEmbeddedControlsQuery",id:"1710751775678986",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentLiveVideoIndicatorQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"broadcastStatus",name:"broadcast_status",args:null,storageKey:null},{kind:"ScalarField",alias:"breakingStatus",name:"breaking_status",args:null,storageKey:null},{kind:"ScalarField",alias:"isPremiere",name:"is_premiere",args:null,storageKey:null},{kind:"ScalarField",alias:"liveBadgeText",name:"live_badge_text",args:null,storageKey:null},{kind:"LinkedField",alias:"rehearsalInfo",name:"rehearsal_info",storageKey:null,args:null,concreteType:"LiveVideoRehearsalInfo",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"rehearsal_text",args:null,storageKey:null}]}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentLiveVideoIndicatorQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentLiveVideoIndicatorQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentLiveVideoIndicatorQuery",id:"2270322769704508",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentStreamingReactionTrayQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null},{kind:"LocalArgument",name:"userID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},d={kind:"ScalarField",alias:"feedbackID",name:"feedback_id",args:null,storageKey:null},e={kind:"ScalarField",alias:"broadcastID",name:"broadcast_id",args:null,storageKey:null},f=[{kind:"Variable",name:"id",variableName:"userID"}],g={kind:"LinkedField",alias:"profilePic",name:"profile_picture",storageKey:"profile_picture(height:50,width:50)",args:[{kind:"Literal",name:"height",value:50},{kind:"Literal",name:"width",value:50}],concreteType:"Image",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"uri",args:null,storageKey:null}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentStreamingReactionTrayQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"InlineFragment",type:"Video",selections:[c,d,e]}]},{kind:"LinkedField",alias:null,name:"user",storageKey:null,args:f,concreteType:"User",plural:!1,selections:[g]}]},operation:{kind:"Operation",name:"VideoComponentStreamingReactionTrayQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},c,{kind:"InlineFragment",type:"Video",selections:[d,e]}]},{kind:"LinkedField",alias:null,name:"user",storageKey:null,args:f,concreteType:"User",plural:!1,selections:[g,c]}]},params:{operationKind:"query",name:"VideoComponentStreamingReactionTrayQuery",id:"1731377173565472",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentWithLiveBroadcastQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},d={kind:"ScalarField",alias:"broadcastStatus",name:"broadcast_status",args:null,storageKey:null};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentWithLiveBroadcastQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"InlineFragment",type:"Video",selections:[c,d]}]}]},operation:{kind:"Operation",name:"VideoComponentWithLiveBroadcastQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},c,{kind:"InlineFragment",type:"Video",selections:[d]}]}]},params:{operationKind:"query",name:"VideoComponentWithLiveBroadcastQuery",id:"1859083577484862",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentContextMenuQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"permalinkUrl",name:"permalink_url",args:null,storageKey:null}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentContextMenuQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentContextMenuQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentContextMenuQuery",id:"1670532989662600",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentLiveEndScreenQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c=[{kind:"ScalarField",alias:null,name:"text",args:null,storageKey:null}],d={kind:"LinkedField",alias:"liveEndText",name:"live_end_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:!1,selections:c};c={kind:"LinkedField",alias:"liveEndFollowPromptText",name:"live_end_follow_prompt_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:!1,selections:c};var e={kind:"ScalarField",alias:"isLiveAudioFormat",name:"is_live_audio_format",args:null,storageKey:null},f={kind:"LinkedField",alias:"profilePicture",name:"profile_picture",storageKey:"profile_picture(height:70,width:70)",args:[{kind:"Literal",name:"height",value:70},{kind:"Literal",name:"width",value:70}],concreteType:"Image",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"uri",args:null,storageKey:null}]},g={kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},h={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentLiveEndScreenQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"InlineFragment",type:"Video",selections:[d,c,e,{kind:"LinkedField",alias:null,name:"owner",storageKey:null,args:null,concreteType:null,plural:!1,selections:[f]}]}]}]},operation:{kind:"Operation",name:"VideoComponentLiveEndScreenQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[g,h,{kind:"InlineFragment",type:"Video",selections:[d,c,e,{kind:"LinkedField",alias:null,name:"owner",storageKey:null,args:null,concreteType:null,plural:!1,selections:[g,f,h]}]}]}]},params:{operationKind:"query",name:"VideoComponentLiveEndScreenQuery",id:"1697410810295955",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentLiveInterruptedScreenQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"isLiveAudioFormat",name:"is_live_audio_format",args:null,storageKey:null}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentLiveInterruptedScreenQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentLiveInterruptedScreenQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentLiveInterruptedScreenQuery",id:"1713690985379819",text:null,metadata:{}}}}();e.exports=a}),null); __d("AdsProgressBar.react",["cx","LoadingMarker.react","React","isTruthy","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={xsmall:"_2n01",small:"_5nak",medium:"_5nal",large:"_5nam"};a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){__p&&__p();var a=this.props.min,c=this.props.max,d=Math.max(a,Math.min(c,this.props.value==null?0:this.props.value)),e=(d-a)/(c-a)*100+"%";c="_5nat"+(d===c?" _5nan":"")+(d===a?" _5nao":"");var f=b("joinClasses")("_5nap"+(this.props.animated?" _5naq":""),h[this.props.size]),g=this.props.label,i=null;b("isTruthy")(g)&&(i=b("React").createElement("span",{className:"_5nar"},g));var j=null;b("isTruthy")(g)&&(j=b("React").createElement("span",{className:"_5nar _5nas"},g));g=this.props.error;var k=null;if(b("isTruthy")(g)){g=(g-a)/(d-a)*100+"%";k=b("React").createElement("div",{className:"_5nat _5nc9",style:{width:g}})}d=null;this.props.striped&&(d=b("React").createElement("div",{className:"_5nat _4g9k"}));a=b("React").createElement("div",babelHelpers["extends"]({},this.props,{className:b("joinClasses")(this.props.className,f)}),j,b("React").createElement("div",{className:c,style:{width:e}},k,i,d));return!this.props.representsWait?a:b("React").createElement(b("LoadingMarker.react"),null,a)};return c}(b("React").Component);a.defaultProps={animated:!1,label:null,min:0,max:100,value:0,representsWait:!0,size:"large",error:null,striped:!1};e.exports=a}),null); __d("AdsXUIProgressBar.react",["cx","AdsProgressBar.react","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement(b("AdsProgressBar.react"),babelHelpers["extends"]({},this.props,{animated:!0,className:b("joinClasses")(this.props.className,"_qss"),size:"small",value:this.props.value}))};return c}(b("React").Component);e.exports=a}),null); __d("AdsBlueTip.react",["cx","CSS","LayerFadeOnShow","React","XUIAmbientNUX.react"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=1e3;c=b("LayerFadeOnShow").forDuration(a);var h={BlueTipFadeOnShow:c};d=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){__p&&__p();var c;c=a.call(this,b)||this;c.$1=!1;c.$2=!1;c.onClose=function(){c.props.onClose!=null&&c.props.onClose()};c.$3=function(){c.$1&&!c.$2&&c.props.context.removeAttribute("tabIndex")};b=b.context.getAttribute("tabIndex");c.$2=b!=null||b===0;return c}var d=c.prototype;d.componentDidMount=function(){this.$1=!0,this.$3(),this.props.onImpression&&this.props.onImpression()};d.componentDidUpdate=function(a){var c=a.context,d=a.highlightContext;a=a.shown;this.props.context!==c&&d!=null&&d&&a&&b("CSS").removeClass(c,"_z8p");window.setTimeout(this.$3,0)};d.componentWillUnmount=function(){this.$1=!1,b("CSS").removeClass(this.props.context,"_z8p")};d.renderLayers=function(){var a=this.props.behaviors?this.props.behaviors:h,c=this.props;c.highlightContext;c.onClose;c.onImpression;c=babelHelpers.objectWithoutPropertiesLoose(c,["highlightContext","onClose","onImpression"]);return b("React").createElement(b("XUIAmbientNUX.react"),babelHelpers["extends"]({},c,{behaviors:a,key:"blueTip",onCloseButtonClick:this.onClose}),this.props.children)};d.render=function(){this.props.highlightContext!=null&&this.props.highlightContext&&this.props.shown?b("CSS").addClass(this.props.context,"_z8p"):b("CSS").removeClass(this.props.context,"_z8p");return b("React").createElement("span",null,this.renderLayers())};return c}(b("React").Component);d.defaultProps=babelHelpers["extends"]({},b("XUIAmbientNUX.react").defaultProps,{shown:!0});e.exports=d}),null); __d("AdsBlueTour.react",["cx","fbt","LeftRight.react","React","XUIButton.react","emptyFunction"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;var i=-1;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=0&&ba};c.remove=function(a){this.$5?this.$19(a):this.$20(a),this.$1&&this.$1.destroy()};c.isLastItemVisible=function(a,b){var c=a.items.length-1;return b===c||this.isItemVisible(a,c)&&this.$3};c.isItemVisible=function(a,c){__p&&__p();var d=a.items;a=a.viewport;d=d[c];if(!d)return!1;if(this.$5)return b("Style").get(d,"opacity")==="1";c=d.getBoundingClientRect();d=a.getBoundingClientRect();a=c.left>=d.left&&c.right<=d.right&&c.top>=d.top&&c.bottom<=d.bottom;return a};c.$19=function(a){a=a.items;for(var c=0,d=a.length;cc&&this.setIndex(this.props.resetInitialIndex?0:c);return{container:b("ReactDOM").findDOMNode(this.refs.itemsContainer),items:a,viewport:b("ReactDOM").findDOMNode(this.refs.viewport)}};d.componentDidMount=function(){this.forceLayoutUpdate(),this.state.autoplay&&this.$12(),this.$1=null};d.UNSAFE_componentWillMount=function(){this.$2=!1,this.$3=null,this.$4=null};d.componentWillUnmount=function(){this.$13(),this.$14()};d.UNSAFE_componentWillUpdate=function(a,b){var c=k(this.props,a),d=k(this.state,b),e=this.$10();a.children&&a.children.length=0&&ab[f].length&&(c=0);e=this._getCurrentSegment(f,a,b,c);var g=this._getSegmentSize(f,e,b),h=this._getSegmentLength(f,e,b);d[f]=g&&h?this._getBitrateString(h?g*8/h:0):"N/A"}return{bitrate:d,currentPlayingSegment:e}},_getBitrateString:function(a){var b=1024;return(a/b).toFixed(1)+"Kbps"},_isPlayheadInsideSegment:function(a,b,c){return a>=b&&a<=c},_getCurrentSegment:function(a,c,d,e){__p&&__p();e=e;var f=d[a];if(!f)return-1;var g=f[e];if(!g)return-1;var h=g.startTime;g=g.endTime;if(!this._isPlayheadInsideSegment(c,h,g))if(e=0)if(a[d].endTime<=c){d++;break}return a.slice(d)}));this.segmentIndexEndTimes=this.extractEndTimes(a);return c};c.extractEndTimes=function(a){a=a.map(function(a){return a[a.length-1]});return a.filter(function(a){return a}).map(function(a){a=a.endTime;return a})};c.previous=function(a,b){__p&&__p();b=this.indexDiffs[a];if(b){a=this.get();for(var c=0;cb)break;a=Number(c)}a>=0&&this.replace(this.history[a])};c.next=function(a){a in this.history&&this.replace(this.history[a])};return b}(b("VDOPropertyUpdater"))}),null); __d("VDOSourceBufferHealthHistory",["VDOSparseHistory"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=function a(b){if(b==null||typeof b!=="object")return b;if(Array.isArray(b))return b.map(a);var c={};for(var d in b)c[d]=a(b[d]);return c};e.exports=(c=a=function(a){__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b,c,d){__p&&__p();var e;e=a.call(this,b,c,d)||this;e.recordEvent=function(a,b){b=b();var c=e.isUpdate(b);window.updates=!!c+(window.updates||0);if(c){var d=g(b);e.history[a]=function(){return d};e.mostRecent=d}};e.recordProperty=e.recordEvent;return e}var c=b.prototype;c.isUpdate=function(a){__p&&__p();var b=this.mostRecent;if(a&&!b)return!0;if(a.length!==this.mostRecent.length)return!0;for(var c=0;cthis.history.length)return Infinity;for(var b in this.reconstructors){var c=this.reconstructors[b];c.next(a)}this.frozenProps.historyEventType=this.history[a];return this.offset=a};c["goto"]=function(a){var b=this.reconstructors.playbackPosition.last(),c=a>b,d=0;while(this.frozenProps.playbackPosition>a&&isFinite(d))d=this.prev();while(this.frozenProps.playbackPosition=d.tMin};d.rangeInView=function(a){return a.startTime=d.tMin-m};d.renderTimeline=function(a,c){var e=["v","a"][c];a=a.map(d.renderSegment.bind(babelHelpers.assertThisInitialized(d),e));e=l*c;return b("React").createElement("g",{key:"track-"+c,transform:"translate(0,"+e+")"},a)};d.renderBufferHealth=function(a,c){var e=c*l-k;return b("React").createElement("g",{key:"buffer"+c,transform:"translate(0,"+e+")"},a.filter(d.rangeInView).map(d.renderBufferRange))};d.renderMomentEvent=function(a,c){var e=a.type;a=a.time;c={key:c+"-"+e+"-"+a,stroke:h[e]};return b("React").createElement("line",babelHelpers["extends"]({x1:a,x2:a,y1:d.yMin,y2:d.yMax},c))};d.getVisibleSegments=function(a){return a.filter(d.rangeInView)};d.$1=0;return d}var d=c.prototype;d.$2=function(a){a=new(b("URI"))(a.url);a=this.props.segmentInitSourceMap.get(a.getPath());if(!a)return"";a=a.getFailoverUri();a=this.$3(a);return a};d.$3=function(a){var c=new(b("URI"))(a),d=a.getStartByte();a=a.getEndByte();(d||a)&&(c.addQueryData("bytestart",d),c.addQueryData("byteend",a));return c.toString()};d.$4=function(a){return new(b("Promise"))(function(c,d){new(b("XHRRequest"))(a).setMethod("GET").setResponseType("blob").setResponseHandler(function(a,b,d){d&&c(a)}).setErrorHandler(d).send()})};d.$5=function(a){a=new(b("URI"))(a.url).getPath();a=a.substring(a.lastIndexOf("/")+1);return a};d.$6=function(a){var b={a:"audio/mp4",v:"video/mp4"};return b[a[0]]};d.$7=function(a,c,d){var e,f,g,h,i,j,k,l,m;return b("regeneratorRuntime").async(function(n){while(1)switch(n.prev=n.next){case 0:e=b("UserAgent").isPlatform("Mac OS X")?d.metaKey:d.ctrlKey;n.next=3;return b("regeneratorRuntime").awrap(this.$8(a,c,e));case 3:f=n.sent,g=document.createElement("a"),h=window.URL.createObjectURL(f),g.href=h,i=this.$5(a),j=i.lastIndexOf("."),k=i.substring(0,j),l=i.substring(j),g.download=k+"-"+c+l,m=this.$6(c),g.type=m,g.click(),window.URL.revokeObjectURL(h);case 16:case"end":return n.stop()}},null,this)};d.$8=function(a,c,d){__p&&__p();var e=this;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=[this.$3(a.url)];d&&c.unshift(this.$2(a));return f.abrupt("return",b("Promise").all(c.map(function(a){return e.$4(a)})).then(function(a){return new Blob(a)}));case 3:case"end":return f.stop()}},null,this)};d.renderSegment=function(a,c,d){var e=c.startTime,f=c.debugInfo;f=f&&f.delta>0?f.endTime:c.endTime;f=f-e;var g=this.props.getSegmentClass(this.props.segmentStates,c,a),h=""+a+d;return b("React").createElement(b("TooltipLink.react"),{key:h,tooltip:"Segment "+d+" - "+a,onClick:this.$7.bind(this,c,h)},b("React").createElement("rect",{className:g,x:e,width:f,height:"1"}))};d.renderBufferRange=function(a,c){var d=a.gap,e=a.startTime;a=a.endTime;d=d?"_4yqh _4sco":"_4yqi _4scq";return b("React").createElement("line",{key:"buffer-"+c,className:d,x1:e,x2:a})};d.renderDurationEvent=function(a,c){var d=a.type,e=a.track,f=a.startTime;a=a.endTime;e=l*e;var g=e+1,i=f-m,j=f+m,k=a+m,n=a-m;i={d:"M"+i+" "+e+"L"+j+" "+g+"H"+k+"L"+n+" "+e,key:c+"-"+d+"-"+f+"-"+a,fill:h[d],stroke:h[d]};return b("React").createElement("path",i)};d.renderSegmentStats=function(a,c,d){if(!c)return null;a||(a=[],a[0]=a[1]="N/A");return b("React").createElement(b("TooltipLink.react"),{key:"length-"+d,display:"inline",href:"#",className:"_2io3 _4scr",tooltip:"Current bitrate / Length of the largest buffered segment shown in this track"},a[d]+" / "+c.toFixed(2)+"s")};d.getLongestSegmentLength=function(a){return a.reduce(function(a,b){var c=b.startTime;b=b.endTime;return Math.max(a,b-c)},0)};d.computeViewBox=function(a,b){var c=this.props.segmentArrays.length;this.tMin=a-i;this.tMax=a+j;this.yMin=-2*k;this.yMax=c+2*k*b;return this.tMin+" "+this.yMin+" "+(i+j)+" "+this.yMax};d.render=function(){__p&&__p();var a=this,c=this.props,d=c.segmentArrays;c=c.playbackPosition;if(!d)return null;var e=this.props.getSourceBufferHealth(),f=this.computeViewBox(c,e.length);d=d.map(this.getVisibleSegments);var g=d.map(this.getLongestSegmentLength);c=b("React").createElement("line",{x1:c,x2:c,y1:this.yMin,y2:this.yMax,stroke:"#000"});var h=this.props.timelineEvents.filter(this.eventInView),l=this.props.timelineRanges.filter(this.rangeInView);for(var m=0,n;n=d[m];m++)for(var n=n,o=Array.isArray(n),p=0,n=o?n:n[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var q;if(o){if(p>=n.length)break;q=n[p++]}else{p=n.next();if(p.done)break;q=p.value}q=q;q=q.debugInfo;if(q){var r=q.delta,s,t,u;r>0?(s="timelineGapAt",t=q.endTime,u=q.endTime+r):(s="timelineOverlapAt",t=q.endTime+r,u=q.endTime);l.push({type:s,track:m,startTime:t,endTime:u})}}return b("React").createElement("div",{className:"_2iob _4scs"},b("React").createElement(b("TooltipLink.react"),{display:"inline",href:"#",className:"_2iof _4scu",tooltip:"The vertical line marks the current playhead position. To the left of it, a "+i+"s window of past segments. Afterwards, the next upcoming "+j+"s of known segments."},"Video:",b("React").createElement("br",null),"Audio:"),b("React").createElement("div",{className:"_2iog _4scv"},g.map(function(b,c){return a.renderSegmentStats(a.props.bitrate,b,c)})),b("React").createElement("svg",{className:"_2ioh _4scw",viewBox:f,strokeWidth:k},d.map(this.renderTimeline),h.map(this.renderMomentEvent),l.map(this.renderDurationEvent),c,e.map(this.renderBufferHealth)))};return c}(b("React").Component);e.exports=a}),null); __d("VideoDebugItem.react",["cx","React","TooltipLink.react"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props.children,c=null;this.props.column==="right"&&(c="_s5q");var d=this.props.label;this.props.tooltip&&(d=b("React").createElement(b("TooltipLink.react"),this.props,d));return b("React").createElement("div",{className:c},b("React").createElement("b",null,d),": ",a)};return c}(b("React").Component);e.exports=a}),null); __d("VideoDebugDashMpdLag.react",["React","TooltipLink.react","VideoDebugItem.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.UNSAFE_componentWillReceiveProps=function(a){a=a.mpdUpdatePollCount!==this.props.mpdUpdatePollCount;this.setState({mpdPoll:a})};d.shouldComponentUpdate=function(a,b){return b.mpdPoll};d.$1=function(a){return(a/1e3).toFixed(3)+"s"};d.render=function(){var a=this.props,c=a.lastMpdFetchDuration;a=a.lastMpdChangesTime;if(!c)return null;var d=this.$1(Date.now()-a);d="We saw no new segments in this number of MPD polls.\n"+(c?"Last poll with news was "+d+" ago.":"It has been "+d+" without news, since we started polling.");var e=null,f=this.props.prevMpdChangesTime;f&&(e=this.$1(a-f),e=": "+e);return b("React").createElement("div",null,b("React").createElement(b("VideoDebugItem.react"),{label:"MPD load time",column:"right",tooltip:"Load time of the most recent dash manifest"},c.toFixed(3),"s"),b("React").createElement(b("VideoDebugItem.react"),{label:"MPD polls",href:this.props.liveManifestUrl||null,tooltip:"Number of recent dash manifest polls without news,\nand the time last poll for new segments took."},b("React").createElement(b("TooltipLink.react"),{tooltip:d},this.props.mpdUpdatePollCount),e))};return c}(b("React").Component);e.exports=a}),null); __d("VideoDebugDashRepresentation.react",["React","TooltipLink.react","VideoDebugItem.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=/replica=(\d*)\&?/;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.idToolLink=function(a){return"https://our.intern.facebook.com/intern/id2/"+a+"/"};d.render=function(){__p&&__p();var a=this.props,c=a.streamId,d=a.audioStreamId,e=a.audioFormat;a=a.liveManifestUrl;if(!c)return null;var f=null,h=c;c=c.replace(/vd?$/,"");/^\d+$/.test(c)&&(h=b("React").createElement(b("TooltipLink.react"),{target:"_blank",display:"inline",tooltip:"Show VideoEncoding of the playing video representation id",href:this.idToolLink(c)},h));c="";if(a&&a.indexOf("aaf=1")>-1){var i=null;a=a.match(g);i=a&&a[1];f=b("React").createElement(b("VideoDebugItem.react"),{label:"AAF Replica"},i)}if(d){a=d.replace(/ad?$/,"");/^\d+$/.test(a)?c=b("React").createElement(b("VideoDebugItem.react"),{label:"Audio Representation"},b("React").createElement(b("TooltipLink.react"),{target:"_blank",display:"inline",tooltip:"Show VideoEncoding of the playing audio representation id",href:this.idToolLink(a)},d)," ","(",e,")"):c=b("React").createElement(b("VideoDebugItem.react"),{label:"Audio Representation"},d)}return b("React").createElement("div",null,b("React").createElement(b("VideoDebugItem.react"),{label:"Video Representation"},h),c,f)};return c}(b("React").Component);e.exports=a}),null); __d("exposeVideoDebug",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a,b){__p&&__p();var c=a.getDebug,d=a.videoID,e=a.loggedError;a=a.lastError;c=c();var f=c.VideoPlayerController,g=c.VideoDebugParent,h=c.VideoDebugOverlay,i=c.VideoBufferGaps,j=c.ComboBufferGaps;c=c.AudioBufferGaps;var k=g.getProps();k=k.segmentArrays;k=k||[];var l=k[0];k=k[1];var m=f.getVideoAPI(),n=m.getDOMElement(),o=m.getDebug(),p=o.VideoPlayerHTML5DashPlayer;o=o.VideoPlayerHTML5ApiCea608StateDebug;var q={},r={};if(p){q=p.getDebug();var s=q;s=s.DashPlayer;s&&(r=s.getDebug(),!r.identifiersIntact)}var t={vid:"videoID",vel:"VideoElement",man:"manifest",mpd:"getManifest",abr:"AbrManager",bwe:"BandwidthEstimator",src:"VideoSource",vss:"VideoSourceStream",vsi:"VideoSegmentIndex",vbm:"VideoBufferManager",vsb:"VideoSourceBuffer",vbg:"VideoBufferGaps",cbg:"ComboBufferGaps",ass:"AudioSourceStream",asi:"AudioSegmentIndex",abm:"AudioBufferManager",asb:"AudioSourceBuffer",abg:"AudioBufferGaps",vtq:"VideoTaskQueue",vts:"VideoTaskScheduler",tss:"TextSourceStream",dsp:"DashPlayer",h5d:"VideoPlayerHTML5DashPlayer",h5a:"VideoPlayerHTML5Api",vpc:"VideoPlayerController",vdp:"VideoDebugParent",vdo:"VideoDebugOverlay",lpe:"LoggedPlayerError",err:"PlayerError",cea608:"VideoPlayerHTML5ApiCea608StateDebug"},u=babelHelpers["extends"]({videoID:d,VideoElement:n,VideoBufferGaps:i,ComboBufferGaps:j,AudioBufferGaps:c,VideoSegmentIndex:l,AudioSegmentIndex:k},q,r,{VideoPlayerHTML5DashPlayer:p,VideoPlayerHTML5Api:m,VideoPlayerController:f,VideoDebugParent:g,VideoDebugOverlay:h,LoggedPlayerError:e,PlayerError:a,VideoPlayerHTML5ApiCea608StateDebug:o,ns:function(a){a===void 0&&(a=window);console.group("videoDebug [videoID "+d+"]");for(var b in t){var c=t[b],e=u[c];e!==void 0&&(a[b]=e,window.console.log(b+" = "+c))}console.groupEnd();return u}});window.videoDebug=u;b&&u.ns()};e.exports=a}),null); __d("VideoDebugExposeVideoDebug.react",["cx","React","TooltipLink.react","exposeVideoDebug"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g